package com.dyh.quickdemo.demos.autoBean;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
//@ConditionalOnProperty(prefix = "djob", name = {"namespace"}, matchIfMissing = false)
//@EnableConfigurationProperties(JobProp.class)
public class AutoConf {

    /*这是一个监听spring 事件的bean 它也要注册到spring中*/
    @Bean
    public SpringRegist springRegist(){
        return new SpringRegist();
    }
}
